<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>用户登录</h1>
<form method="post" th:action="@{/login}">
    <span style="color: red" th:text="${msg}"></span><br>
    用户名：<input name="username" type="text"/><br>
    密码：<input name="password" type="password"><br>
    记住我：<input name="remember-me" type="checkbox"/><br>
    验证码：<input name="code" type="text"><img height="40" src="/validcode" width="100"><br>
    <input type="submit" value="登录"><br>
</form>
</body>
</html>